/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controladores;

import java.awt.event.ActionEvent;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
//import javax.faces.bean.ManagedBean;
//import javax.faces.bean.SessionScoped;

/**
 *
 * @author Pablo
 */
//@ManagedBean(name = "menuControl")
@javax.inject.Named("menuControl")
@SessionScoped
public class MenuController extends ParentController implements Serializable{
    private String url;
    /**
     * Creates a new instance of MenuController
     */
    public MenuController() {
       url = "x_initial.xhtml";
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
        
    public void findproposals ( ActionEvent e){
        url = "x_pagebuscaprop.xhtml";
    }
    
    public void editprofile (ActionEvent e){
        url = "registro.xhtml";
    }
    
    public void showproposal (ActionEvent e){
        url = "x_verpropuesta.xhtml";
        //url = "x_pruebadialog.xhtml";
    }
    
    public void newproposal (ActionEvent e){
        url = "x_newproposal.xhtml";
    }
    
    public void initial (ActionEvent e){
        url = "x_initial.xhtml";
    }
}
